<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>v-bind</title>
</head>
<body>

<div id="app">
  <a v-bind:href="aHref">百度一下</a>
  <img v-bind:src="imgUrl" />
<!--  语法糖写法-->
  <img :src="imgUrl" />
</div>
<script src="../js/vue.js"></script>
<script>
  const app = new Vue({
    el: '#app',
    data: {
      message: '你好',
      aHref: 'http://www.baidu.com',
      imgUrl: 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1604819883576&di=9a6614e71db85aba7dbea82bf99cc3be&imgtype=0&src=http%3A%2F%2Fattach.bbs.miui.com%2Fforum%2F201309%2F03%2F150928ozb82vyzhzsv96ov.jpg'
    }
  })
</script>
</body>
</html>
